"use strict"

const electron = require("electron");
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
var mainWindow = null;

app.on("window-all-closed", function(){
    if(process.platform != "drawin"){
        app.quit();
    }
});

app.on("ready", function(){
    mainWindow = new BrowserWindow({
        width: 1000,
        height: 1000
    });
    mainWindow.loadURL("file://" + __dirname + "/2048/index.html");
    mainWindow.on("closed", function () {
        mainWindow = null;
    });
});
